//10_File handling //parc_03 //wap to print #include void main() { FILE *fp; clrscr(); fp = fopen("file.txt","w"); /*Create a file and add text*/ fprintf(fp,"%s","This is just an example"); /*writes data to the file*/ fclose(fp); /*done!*/ getch(); } /* ------output-------- */